from django.urls import path, include
from django.contrib.auth import views as auth_views
from rest_framework import routers
from admins.views import login, admin 
from django.views.decorators.csrf import csrf_exempt
from django.views.generic.base import TemplateView

urlpatterns = [
    path('pwd-login', auth_views.LoginView.as_view(template_name='registration/login.html')),
    path('login', login.LoginView.as_view(), name='admin-login'),
    path('mobile-login', TemplateView.as_view(template_name='registration/mobile-login.html')),
    path('reset-pwd', TemplateView.as_view(template_name='registration/reset-pwd.html')),
    path('wechat-login', TemplateView.as_view(template_name='registration/wechat-login.html')),
    path('index', TemplateView.as_view(template_name='front-page/index.html')),
]